package top.wilsonlv.jaguar.cloud.upms.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.wilsonlv.jaguar.basecrud.BaseMapper;
import top.wilsonlv.jaguar.cloud.upms.controller.vo.UserDeviceVO;
import top.wilsonlv.jaguar.cloud.upms.entity.UserDevice;

import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author lvws
 * @since 2022-01-13
 */
@Mapper
public interface UserDeviceMapper extends BaseMapper<UserDevice> {


    /**
     * 查询用户设备
     *
     * @param page   分页
     * @param params 参数
     * @return 用户设备
     */
    Page<UserDeviceVO> queryUserDevice(@Param("page") Page<UserDevice> page, @Param("params") Map<String, Object> params);

    /**
     * 查询用户设备，右连接user表
     *
     * @param page   分页
     * @param params 参数
     * @return 用户设备
     */
    Page<UserDeviceVO> rightJoinUserPage(@Param("page") Page<UserDevice> page, @Param("params") Map<String, Object> params);


}